<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/mytable/Sys_Step.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mytable/mytable/Sys_Step.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'stepid',
                footer: "Foots",
                cnName: '业务步骤',
                name: 'mytable/Sys_Step',
                url: "/Sys_Step/",
                sortName: "stepid"
            });
            const editFormFields = ref({"stepid":"","stepname":""});
            const editFormOptions = ref([[{"title":"步骤编号","required":true,"field":"stepid","disabled":true,"type":"text"},
                               {"title":"步骤名称","field":"stepname","type":"text"}]]);
            const searchFormFields = ref({"stepid":"","stepname":""});
            const searchFormOptions = ref([[{"title":"步骤编号","field":"stepid","type":"text"},{"title":"步骤名称","field":"stepname","type":"text"}]]);
            const columns = ref([{field:'stepid',title:'步骤编号',type:'int',width:20,readonly:true,require:true,align:'left',sort:true},
                       {field:'stepname',title:'步骤名称',type:'string ',link:true,width:110,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
